/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Redistribution;

import Graph.Node;

/**
 *
 * @author oliviersputael
 */
public class NodesCouple {
	public NodesCouple (Node n1, Node n2) {
		node1 = n1;
		node2 = n2;
	}
	
	public NodesCouple () {
		node1 = null;
		node2 = null;
	}
	
	public Node getFirstNode() {
		return node1;
	}
	
	public Node getSecondNode() {
		return node2;
	}
	
	public void setFirstNode (Node n) {
		node1 = n;
	}
	
	public void setSecondNode (Node n) {
		node2 = n;
	}
	
	public boolean contains (Node n) {
		return (node1.equals(n) || node2.equals(n));
	}
	
	private Node node1;
	private Node node2;
}
